package com.witdata.common.domain.dto;


import java.time.LocalDateTime;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.witdata.common.domain.enums.Week;
import com.witdata.common.serializer.ToLongDeSerializer;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class CourseSchedulesDto {
    
    @JsonSerialize(using = ToStringSerializer.class)
    @JsonDeserialize(using = ToLongDeSerializer.class)
    private Long id;
    
    private CourseDto course;

    private Week dayOfWeek;

    private LocalDateTime startTime;

    private LocalDateTime endTime;

    private String classroom;

    private LocalDateTime createdAt;
}
